package com.ztesoft.book.core.quartz.schedulejob.qo;

import com.ztesoft.book.core.base.base.dto.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 定时任务实体类
 * @Author: YangFan
 * @Date: 2021-03-19 16:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ScheduleJobQO extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 任务调度参数Key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";


    /**
     * SpringBean名称
     */
    @NotBlank(message = "bean名称不能为空")
    private String beanName;

    /**
     * 参数
     */
    private String params;

    /**
     * Cron表达式
     */
    @NotBlank(message = "cron表达式不能为空")
    private String cronExpression;

    /**
     * 任务状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;


}